<?php 
/**
 * File: View - Clientes - index.phtml
 */
 
 //	$this->jQuery()->addJavascriptFile( $this->layout_base . '/third/js/table_sorter.js');

?>
			<div class="page-title ui-widget-content ui-corner-all">
				<div>
						<div class="float-left">
							<br />
							<h1>Editar <?php echo $this->moduleTitle ?></h1>
						</div>
						<div class="button float-right">
							<a href="/third/clientes"  class="btn ui-state-default"><span class="ui-icon ui-icon-circle-triangle-w"></span>Voltar para listagem</a>
						</div>
						<div class="clearfix"></div>
				</div>
				<div id="main-itens-content" class="other" >
					<?php echo($this->flashMessages()); ?>

					<div class="cont ui-corner-all yellow-box ">
						Editando usuario: <strong><?php echo $this->usuario['login'] ?></strong>
					</div>
					<Br />
					<div class="two-column">
					
						<!-- DADOS -->
						<div  class="column">
							<div class="portlet">
								<div class="portlet-header">Dados</div>
								<div class="portlet-content">
																			<?php 
												if( $this->formErro ){
													echo "<div class='response-msg error ui-corner-all'>".$this->formErro."</div>"; 
												}
											?>
									<div class="tabs">
										<ul>
											<li><a href="#form_dados">Pessoais</a></li>
										</ul>	
										<div id="form_login" >
											<?php echo $this->form; ?>
										</div>
									</div>
									<br />
								</div>
							</div>
						</div>
						
						<!-- OPCOES -->
						<div  class="column">
							<div class="portlet">
								<div class="portlet-header">A&ccedil;&otilde;es</div>
								<div class="portlet-content">
									<ul>
										<li><a href="" class="btn ui-state-default"><span class="ui-icon ui-icon-person"></span>Perfil</a></li>
										<li><a href="/third/usuarios/redefine-password/id/<?php echo $this->usuario['id'] ?>" class="btn ui-state-default"><span class="ui-icon ui-icon-link"></span>Resetar senha</a></li>
										<?php if( $this->usuario['status'] == "1" ){ ?>
											<li><a href="/third/usuarios/unlock/id/<?php echo $this->usuario['id'] ?>" class="btn ui-state-default"><span class="ui-icon ui-icon-locked"></span>Bloquear usu&aacute;rio</a></li>
										<?php } else if( $this->usuario['status'] == "0" ) { ?>
											<li><a href="/third/usuarios/unlock/id/<?php echo $this->usuario['id'] ?>" class="btn ui-state-default"><span class="ui-icon ui-icon-unlocked"></span>Liberar usu&aacute;rio</a></li>	
										<?php } ?>
										<li><a href="/third/usuarios/delete/id/<?php echo $this->usuario['id'] ?>" class="btn ui-state-default"><span class="ui-icon ui-icon-minus"></span>Remover usu&aacute;rio</a></li>
									</ul>
								</div>
							</div>	
						</div>
					</div>

				</div>
					
				<div class="clearfix"></div>
			</div>
